﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace PickGold.Util.WordSpliter
{
	/// <summary>
	/// 通配符词汇
	/// </summary>
	class Wildcard
	{
		public Wildcard(string wildcard, Spliter segment)
		{
			this.Key = wildcard.ToLower();

			this.Segments.Add(new Result(wildcard, KeywordFlags.None, 0));

			foreach (var wordInfo in segment.Split(wildcard))
			{
				if (wordInfo.Word != wildcard)
					this.Segments.Add(wordInfo);
			}
		}

		public string Key;

		public List<Result> Segments = new List<Result>();
	}
}
